from flask import Flask, render_template
# static_folder指的是静态目录，static_host指的是img src=/yy的路径
app = Flask(__name__,template_folder='templates',static_folder='static')

@app.route('/index')
def index():
    return render_template('index.html')

if __name__ == '__main__':
    app.run()